package com.um.psystem.service.fixtureService;

import com.um.psystem.entity.fixtureEntity.FixtureDetail;
import com.um.psystem.entity.fixtureEntity.FixtureType;
import com.um.psystem.model.vo.JsonResult;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Auther: AiLen2E
 * @Date: 2022/1/20 14:56
 * @version: 1.0
 */
public interface IFixtureTypeService {
    @Transactional
    public JsonResult<Integer> save(FixtureType fixtureType);

    @Transactional
    public JsonResult<Integer> update(FixtureType fixtureType);

    @Transactional
    public JsonResult<Integer> del(Integer id);

    public JsonResult<FixtureType> get(Integer id);

    public List<FixtureType> getFixtureTypes(Map<String,Object> columnMap);

    //-----------

    @Transactional
    public JsonResult<Integer> save_fd(FixtureDetail fixtureDetail);

    @Transactional
    public JsonResult<Integer> update_fd(FixtureDetail fixtureDetail);

    @Transactional
    public JsonResult<Integer> del_fd(Integer id);

    public JsonResult<FixtureDetail> get_fd(Integer id);

    public List<FixtureDetail> getFixtureDetails(Map<String,Object> columnMap);

    public String getTypeDtlNo(Map<String,Object> columnMap);
}
